import { ValueType } from '@kit.ArkData';

export interface IKvManager {
  init(context): Promise<void>;
  put(key: string, value: ValueType): Promise<void>;
  get(key: string, defValue: ValueType): Promise<ValueType>;
  has(key: string): Promise<boolean>;
  putSync(key: string, value: ValueType);
  getSync(key : string , defValue : ValueType): ValueType;
  commit(): Promise<void>;
}